package com.db.patterns.command;

import com.db.patterns.cache.client.ClientCache;

import java.util.Map;

/**
 * @author nulls.narik
 */
public class PutCommand implements Command {

    private final String key;
    private final String value;

    public PutCommand(String key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public void execute(ClientCache clientCache) {
        clientCache.put(key, value);
    }
}
